package com.warmguard.core.core;

/**
 * ClassName: LoginUserHolder
 * PackageName: com.enquan.lease.common.login
 * Description:
 *
 * @Author: 32782
 * @Date: 12/8/2024 上午8:33
 * @Version: 1.0
 */
public class LoginUserHolder {
    private static ThreadLocal<LoginUser> threadLocal = new ThreadLocal<>();

    public static void setLoginUser(LoginUser local){
        threadLocal.set(local);
    }
    public static LoginUser getLoginUser(){
        return threadLocal.get();
    }
    public static void removeLoginUser(){
        threadLocal.remove();
    }
}
